/**
 * Copyright (C), 2001-2031, www.bosssof.com.cn
 * FileName: ReaderUtil.java
 * Author: ckj
 * Date: 2024/7/21 下午10:17
 * Description:
 * 用于读取数据的工具类
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package com.bosssoft.utils;

import java.io.BufferedReader;


/**
 * @author ckj
 */
public class ReaderUtil {
    private ReaderUtil() {

    }

    /**
     *
     * @author ckj
     * 读取输入数据时进行自动地解密处理，以获取原始的明文数据。
     * @return java.lang.String
     */
    public static String readLineWithAes( BufferedReader reader) throws Exception {
        String line = reader.readLine();
        return EncryptionUtil.decrypt(line);
    }
}